import env from '../config/env';
import Jwt from 'jsonwebtoken';

export default {
    token (data) {
        return Jwt.sign({
            data: data
        }, env('APP_JWT_SECRET'), {
            expiresIn: 60 * 60,
            algorithm: 'HS256'
        });
    }
};
